package com.example.lotterysystem.common.errorcode;

/**
 * 业务层错误码
 */
public interface ServiceErrorCodeConstants {
    // ---------------------- 用户模块错误码 ----------------------
    ErrorCode REGISTER_INFO_IS_EMPTY = new ErrorCode(100, "用户注册信息为空");
    ErrorCode MAIN_ERROR = new ErrorCode(101, "邮箱格式错误");
    ErrorCode PHONE_NUMBER_ERROR = new ErrorCode(102, "手机号格式错误 ");
    ErrorCode IDENTITY_ERROR = new ErrorCode(103, "用户身份信息有误");
    ErrorCode REGISTER_PASSWORD_ERROR = new ErrorCode(104, "密码格式错误");
    ErrorCode MAIL_USED = new ErrorCode(105, "用户邮箱已被使用");
    ErrorCode PHONE_NUMBER_USED = new ErrorCode(106, "用户手机号已存在");
    ErrorCode LOGIN_INFO_ERROR = new ErrorCode(107, "用户登录信息有误");
    ErrorCode VERIFICATION_CODE_ERROR = new ErrorCode(108, "验证码错误");
    ErrorCode USER_INFO_IS_EMPTY = new ErrorCode(109, "用户信息不存在");
    ErrorCode JWT_TOKEN_ACQUIRE_ERROR = new ErrorCode(110, "JWT令牌获取失败");
    ErrorCode LOGIN_PASSWORD_ERROR = new ErrorCode(111, "密码错误");

    // ---------------------- 奖品模块错误码 ----------------------
    ErrorCode PRICE_INFO_IS_EMPTY = new ErrorCode(200, "奖品信息为空");
    ErrorCode FIND_PAGE_INFO_IS_EMPTY = new ErrorCode(201, "数据查询信息为空");
    // ---------------------- 活动模块错误码 ----------------------
    ErrorCode ACTIVITY_PRIZE_ERROR = new ErrorCode(301, "活动奖品信息有误");
    ErrorCode ACTIVITY_USER_ERROR = new ErrorCode(302, "活动人员信息有误");
    ErrorCode ACTIVITY_PRIZE_AMOUNT_ERROR = new ErrorCode(303, "活动奖品数量大于抽奖人数");
    ErrorCode ACTIVITY_PRIZE_TIERS_ERROR = new ErrorCode(304, "活动奖品等级不存在");
    ErrorCode ACTIVITY_FIND_LIST_PARAM_IS_EMPTY = new ErrorCode(305, "活动列表查询参数为空");
    ErrorCode ACTIVITY_ID_IS_EMPTY = new ErrorCode(306, "活动 id 为空");
    ErrorCode GET_ACTIVITY_DETAIL_ERROR = new ErrorCode(307, "获取活动信息失败");
    ErrorCode CACHE_ACTIVITY_ID_IS_EMPTY = new ErrorCode(308, "需缓存活动 id 为空");

    // ---------------------- 抽奖模块错误码 ----------------------
    ErrorCode ACTIVITY_OR_PRIZE_NOT_EXIST = new ErrorCode(400, "活动或奖品不存在");
    ErrorCode ACTIVITY_COMPLETED = new ErrorCode(401, "活动已完成");
    ErrorCode ACTIVITY_PRIZE_COMPLETED = new ErrorCode(402, "活动奖品已被抽取");
    ErrorCode ACTIVITY_PRIZE_COUNT_ERROR = new ErrorCode(403, "中奖人数是否与奖品数量不一致");
    ErrorCode ACTIVITY_STATUS_CONVERT_ERROR = new ErrorCode(404, "活动状态转换失败");
    // ---------------------- 图片模块错误码 ----------------------
    ErrorCode PIC_IS_EMPTY = new ErrorCode(500, "上传图片为空");
    ErrorCode PIC_TYPE_ERROR = new ErrorCode(501, "图片类型格式不符合");
    ErrorCode PIC_UPLOAD_ERROR = new ErrorCode(502, "图片上传失败");
}
